package 西安理工大学;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import java.io.IOException;

public class XAU {
    public static void main(String[] args) throws IOException {
        String Url = "https://dqxy.xaut.edu.cn/szdw/jsfc.htm";
        String Url1 = "https://dqxy.xaut.edu.cn/szdw/jsfc/1.htm";
        Connection connect = Jsoup.connect(Url);
        Document post = connect.post();
        Elements professorR = post.getElementsByClass("professor_R");
        for (Element element : professorR) {
            System.out.println(element.text());
        }
        Connection connect2 = Jsoup.connect(Url1);
        Document post2 = connect2.post();
        Elements professorR2 = post2.getElementsByClass("professor_R");
        for (Element element : professorR2) {
            System.out.println(element.text());
        }
    }
}
